package com.hddf.project.pojos;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "third_category")
public class ThirdCategory {
	
	private int third_category_id;
	private int second_category_id;
	private String third_category_name;
	private int sort;
	private FirstCategory first_category;
	private SecondCategory second_category;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "third_category_id", nullable = false, unique = true)
	public int getThird_category_id() {
		return third_category_id;
	}

	public void setThird_category_id(int third_category_id) {
		this.third_category_id = third_category_id;
	}

	@Column(name = "third_category_name", nullable = false, unique = false)
	public String getThird_category_name() {
		return third_category_name;
	}

	public void setThird_category_name(String third_category_name) {
		this.third_category_name = third_category_name;
	}

	@Column(name = "second_category_id", nullable = false)
	public int getSecond_category_id() {
		return second_category_id;
	}

	public void setSecond_category_id(int second_category_id) {
		this.second_category_id = second_category_id;
	}

	@Column(name = "sort")
	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	@Transient
	public FirstCategory getFirst_category() {
		return first_category;
	}

	public void setFirst_category(FirstCategory first_category) {
		this.first_category = first_category;
	}

	@Transient
	public SecondCategory getSecond_category() {
		return second_category;
	}

	public void setSecond_category(SecondCategory second_category) {
		this.second_category = second_category;
	}
}
